raar.process
Class RAAngleActor

java.lang.Object
  extended byraar.process.RAProcess
      extended byraar.process.RAActor
          extended byraar.process.RAAngleActor
All Implemented Interfaces:
java.io.Serializable

public class RAAngleActor
extends RAActor

This Actor models the angle of the agent, which is a real between -1 and 1 (inclusive). -1 stands for -180 degrees and 1 stands for 180 degrees.

In this version, the Java null is supported as input. It will result in a zero value (since zero means no action).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class raar.process.RAProcess
hasRun, inregister, outregister, register, sourceCode, statement
 
Constructor Summary
RAAngleActor()
          Construct an RAActor.
 
Method Summary
 java.lang.String getDescription()
          Describe the actor.
 boolean isInputValid(RADataType d)
          Implement this method to make the actor only respond to valid values.
 
Methods inherited from class raar.process.RAActor
dumpRegisters, execute, get, getActorValue, getDataType, getInputNames, getInputObjects, getOutputNames, getOutputObjects, run, set, setActorValue, setSourceCode
 
Methods inherited from class raar.process.RAProcess
acceptsInput, clone, getProcessName, getSourceCode, isSpecial, reset, setProcessName, suppliesOutput
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAAngleActor

public RAAngleActor()
Construct an RAActor.

Method Detail

isInputValid

public boolean isInputValid(RADataType d)
Description copied from class: RAActor
Implement this method to make the actor only respond to valid values. Please mind you that the value 0 (for a Real) and "" (for a String) as well as the value NULL always has to be accepted!

Specified by:
isInputValid in class RAActor

getDescription

public java.lang.String getDescription()
Describe the actor.

Specified by:
getDescription in class RAActor